//
//  CommitTableViewCell.m
//  EasyBuy
//
//  Created by Zhu Xiangjun on 10/15/12.
//  Copyright (c) 2012 shen donghao. All rights reserved.
//

#import "CommitTableViewCell.h"


@implementation CommitTableViewCell
@synthesize titleFiled;
@synthesize contentTextView;

- (void)dealloc
{
    [super dealloc];
    [titleFiled release];
    [contentTextView release];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        UITextField *_titleFiled = [[UITextField alloc] initWithFrame:CGRectMake(15,10, 70, 37)];
        _titleFiled.textAlignment = UITextAlignmentCenter;
        _titleFiled.backgroundColor = [UIColor clearColor];
        _titleFiled.enabled = NO;
        _titleFiled.font = [UIFont systemFontOfSize:15.0f];
        _titleFiled.textColor = [UIColor grayColor];
//        _titleFiled.borderStyle = UITextBorderStyleRoundedRect;
        titleFiled = _titleFiled;
        [self addSubview:titleFiled];
        [_titleFiled release];
        
        UIView *_lineView = [[UIView alloc]initWithFrame:CGRectMake(titleFiled.frame.origin.x+titleFiled.frame.size.width, 0, 1, 37)];
        _lineView.backgroundColor = [UIColor blackColor];
        _lineView.alpha = 0.3f;
        [self addSubview:_lineView];
        [_lineView release];
        
        UITextView *_contentTextView = [[UITextView alloc] initWithFrame:CGRectMake(titleFiled.frame.origin.x+titleFiled.frame.size.width+1, 0, 237, 37)];
        _contentTextView.backgroundColor = [UIColor clearColor];
        _contentTextView.textAlignment = UITextAlignmentCenter;
        _contentTextView.editable = NO;
        contentTextView = _contentTextView;
        [self addSubview:contentTextView];
        [_contentTextView release];
        
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

}

@end
